package com.jml.字节码技术.分析;

import java.util.ArrayList;
import java.util.List;

public class OOMDemo {

    public static void main(String[] args) {
        List<byte[]> bytes = new ArrayList<>();

        while (true) {
            bytes.add(new byte[1024 * 100]);
            try {
                Thread.sleep(2);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
    }
}
